package com.qinghuan.mybatisplus.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @Author: dubao
 * @Date: 2022/5/14 11:11
 * @Description:
 */
@Getter
public enum  SexEnum {

    MALE(1, "男"),
    FEMALE(2, "女");

//    @EnumValue
    private Integer sex;
    private String name;

    SexEnum(Integer sex, String name) {
        this.sex = sex;
        this.name = name;
    }
}
